import type { App } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'

export function setupRouter(app: App<Element>) {
  app.use(router)
}

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'about',
      component: () => import('@/App.vue'),
    },
  ],
})

export default router
